class Solution {
    public int[][] findContinuousSequence(int target) {
        List<int[]> list = new ArrayList<>();
        int i = 1,j = 2;
        int sum = 3;
        while(i < j){
            if(sum < target){
                j++;
                sum += j;
            }else if(sum > target){
                sum -= i;
                i++;
            }else{
                int[] arr = new int[j-i+1];
                for(int k = i; k <= j; k++){
                    arr[k-i] = k;
                }
                list.add(arr);
                sum -= i;
                i++;
            }
        }
        return list.toArray(new int[0][]);
    }
}


